#include <iostream>
#include <string>
#include <memory>
#include "EpollServer.hpp"

void myHandler(std::shared_ptr<Connection> connection)
{
    std::cout << "call handler: " << connection->InBuff() << std::endl;
}

int main()
{
    std::unique_ptr<EpollServer> svr(new EpollServer(9999, myHandler));
    // EpollServer* svr = new EpollServer(9999);
    svr->Init();
    svr->Loop();
    return 0;
}